Carbon


DrawThemeMenuBackground

Header: Appearance.h Carbon status: Supported

Draws a menu background.

OSStatus DrawThemeMenuBackground (
    const Rect *inMenuRect, 
    ThemeMenuType inMenuType
);
Parameter descriptions
inMenuRect

A pointer to a structure of type Rect. Before calling DrawThemeMenuBackground, set the rectangle to contain the entire menu, in global coordinates.

inMenuType

A value of type ThemeMenuType. Pass a constant specifying the type of menu for which to draw a background; see “Theme Menu Type Constants” for descriptions of possible values.

function result

A result code.

DISCUSSION

The DrawThemeMenuBackground function draws a theme-compliant menu background in the specified rectangle.

VERSION NOTES

This function is available with Appearance Manager 1.0.1 and later.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)